package top.anonyeast.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

//在templates下面的所有页面只能通过controller来跳转，类似于WEB-INF目录，需要模板引擎的支持
@Controller
public class IndexController {
    @RequestMapping("/index")
    public String toIndex(){
        return "index.html";
    }

    @RequestMapping("/thymeleaf")
    public String toThymeleaf(){
        return "test.html";
    }
}
